//package com.cande.loki.exercise.delaymq;
//
//import com.rabbitmq.client.AMQP;
//import org.springframework.amqp.core.*;
//import org.springframework.amqp.rabbit.annotation.EnableRabbit;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @auther ROCK CODER
// * @DATE 2022/5/15 9:54
// * @Description
// */
//@Configuration
////@EnableRabbit
////这玩意不开也行
//public class RabbitMQConfig {
//    @Bean
//    public Queue queue(){
//        /**
//         * todo
//         * durable:
//         * exclusive:
//         * autodelete:
//         */
////     return new Queue("wgf.queue",true,true,false);
//        return QueueBuilder.durable("wgf_queue").build();
//    }
//    @Bean
//    public DirectExchange defaultExchange() {
//        boolean durable = true;
//        boolean autoDelete = false;
//        return new DirectExchange("wgf_exchange", durable, autoDelete);
//    }
//    @Bean
//    public Binding binding(Queue queue,DirectExchange defaultExchange) {
////        return BindingBuilder.bind(queue())
////                .to(defaultExchange())
////                .with("wgf.routeingley");
//        return BindingBuilder.bind(queue)
//                .to(defaultExchange)
//                .with("wgf_routeingley");
//    }
//
//}
